import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询用户列表
export function listFrontUser(query) {
  return request({
    url: '/frontUser/getFrontUserList',
    method: 'get',
    params: query
  })
}
// 修改用户
export function updateFrontUser(data) {
  return request({
    url: '/frontUser/updateFrontUserById',
    method: 'put',
    data: data
  })
}

// 新增用户
export function addFrontUser(data) {
  return request({
    url: '/frontUser/addFrontUser',
    method: 'post',
    data: data
  })
}
// 删除用户
export function delFrontUser(userId) {
  return request({
    url: '/frontUser/delFrontUserById/' + userId,
    method: 'delete'
  })
}
//邮箱校验
export function verifyEmail(email) {
  return request({
    url: '/frontUser/verifyEmail/'+email,
    method: 'get',
  })
}

